<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Lang')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="langList" item="vo"}
                <label>
                    <input name="row[lang]" type="radio" value="{$vo.slug}" {if $vo.is_default==1 }checked{/if}/>
                    {$vo.title}
                </label>
                {/foreach}

                <span><button type="button" id="baidu_trans" class="btn btn-danger" ><i class="fa fa-language"></i> {:__('翻译')}</button></span>

            </div>
        </div>
    </div>

    <div class="form-group" data-favisible="lang=zh_cn">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" class="form-control" name="row[title]" type="text">
        </div>
    </div>
    <div class="form-group" data-favisible="lang=zh_cn">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="typeList" item="vo"}
                <label for="row[type]-{$key}"><input id="row[type]-{$key}" name="row[type]" type="radio" value="{$key}" {in name="key" value="normal"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>

        </div>
    </div>

    <div class="form-group" data-favisible="lang=zh_cn">
        <label for="c-slug" class="control-label col-xs-12 col-sm-2">{:__('Slug')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-slug" name="row[slug]" class="form-control">
                <option value="">{:__('请选择')}</option>
                {foreach name="slugList" id="item"}
                <option value="{$key}" >{$item}</option>
                {/foreach}
            </select>
        </div>
    </div>

    <div class="form-group" data-favisible="lang=zh_cn">
        <label for="description" class="control-label col-xs-12 col-sm-2">{:__('Description')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea class="form-control" id="description" name="row[description]"></textarea>
        </div>
    </div>

    <div class="form-group" data-favisible="lang=zh_cn">
        <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-content" class="form-control editor" rows="5" name="row[content]" cols="50"></textarea>
        </div>
    </div>

    <div class="form-group" data-favisible="lang=zh_tw">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-lang_data-zh_tw-title" class="form-control" name="row[lang_data][zh_tw][title]" type="text" value="">
        </div>
    </div>
    <div class="form-group" data-favisible="lang=zh_tw">
        <label for="description" class="control-label col-xs-12 col-sm-2">{:__('Description')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea class="form-control" id="c-lang_data-zh_tw-description" name="row[lang_data][zh_tw][description]"></textarea>
        </div>
    </div>
    <div class="form-group" data-favisible="lang=zh_tw">
        <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-lang_data-zh_tw-content" class="form-control editor" rows="5" name="row[lang_data][zh_tw][content]" cols="50"></textarea>
        </div>
    </div>

    <div class="form-group" data-favisible="lang=en">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-lang_data-en-title" class="form-control" name="row[lang_data][en][title]" type="text" value="">
        </div>
    </div>
    <div class="form-group" data-favisible="lang=en">
        <label for="description" class="control-label col-xs-12 col-sm-2">{:__('Description')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea class="form-control" id="c-lang_data-en-description" name="row[lang_data][en][description]"></textarea>
        </div>
    </div>
    <div class="form-group" data-favisible="lang=en">
        <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-lang_data-en-content" class="form-control editor" rows="5" name="row[lang_data][en][content]" cols="50"></textarea>
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
